<!-- $Id: goods_type_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->

<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js')); ?>

<div class="main-div">
  <form action="" method="post" enctype="multipart/form-data" name="theForm" onsubmit="return validate();">
    <table cellspacing="1" cellpadding="3" width="100%">
      <tr id="brand">
        <td class="label"><?php echo $this->_var['lang']['copyright_type']; ?>:</td>
        <td>        	<select name="copyright_id">
						<?php $_from = $this->_var['copyright_type']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'copyright_type_list');if (count($_from)):
    foreach ($_from AS $this->_var['copyright_type_list']):
?>							<?php if ($this->_var['copyright']['copyright_type'] == $this->_var['copyright_type_list']['copyright_type_id']): ?>							<option value="<?php echo $this->_var['copyright_type_list']['copyright_type_id']; ?>" selected="ture"><?php echo $this->_var['copyright_type_list']['copyright_name']; ?>							<?php else: ?>
							<option value="<?php echo $this->_var['copyright_type_list']['copyright_type_id']; ?>"><?php echo $this->_var['copyright_type_list']['copyright_name']; ?>
							<?php endif; ?>								</option>						<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					</select>
        </td>
      </tr>        <td class="label"><?php echo $this->_var['lang']['copyright_content']; ?>:</td>        <td><textarea name="copyright_content" rows="5" cols="42" placeholder="请输入版权声明内容"><?php echo htmlspecialchars($this->_var['copyright']['copyright_content']); ?></textarea></td>      </tr>      <tr>      </tr>        <td class="label"><?php echo $this->_var['lang']['copyright_replace']; ?>:</td>        <td>        	        	<input type="radio" name="copyright_replace" value="0" <?php if ($this->_var['copyright']['copyright_replace'] == 0): ?> checked="ture" <?php endif; ?>/>否        	<input type="radio" name="copyright_replace" value="1" <?php if ($this->_var['copyright']['copyright_replace'] == 1): ?> checked="ture" <?php endif; ?>/>是        </td>      </tr>      <tr>        <td class="label"><?php echo $this->_var['lang']['copyright_picture']; ?>:</td>        <td>        	<input type="file" name="copyright_picture">        	<input name="file_url" type="hidden" value="<?php echo $this->_var['copyright']['old_img_url']; ?>" size="30" maxlength="255">        </td>      </tr>      <tr>        <td class="label"></td>        <td>        	<?php if ($this->_var['copyright']['img_url']): ?>    			<a href="<?php echo $this->_var['copyright']['img_url']; ?>" target='_blank'><img src="<?php echo $this->_var['copyright']['img_url']; ?>"  width="540" height="180"/></a><br />    			(图片规格统一为：1080px * 320px)    		<?php endif; ?>        </td>      </tr>
      <tr align="center">
        <td colspan="2">
          <input type="hidden" name="id" value="<?php echo $this->_var['copyright']['copyright_id']; ?>" />
          <input type="submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" />
          <input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
          <input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
        </td>
      </tr>
    </table>
  </form>
</div>

<script type="text/javascript">
<!--

onload = function() {
  document.forms['theForm'].elements['series_name'].focus();
  startCheckOrder();
}<?php if ($this->_var['technology']['technology_type'] == 0): ?>		brand();		<?php else: ?>		commen();<?php endif; ?><?php if ($this->_var['technology']['cat_type'] == 0): ?>		material();		<?php else: ?>		technology();<?php endif; ?>
function brand(){document.getElementById('brand').style.display="";}function commen(){document.getElementById('brand').style.display="none";}function material(){document.getElementById('material').style.display="";	document.getElementById('technology').style.display="none";}function technology(){document.getElementById('material').style.display="none";	document.getElementById('technology').style.display="";}
function validate()
{
  var validator = new Validator('theForm');
//validator.required('technology_name', '材料/技术名称不能为空');

  return validator.passed();
}
  
//-->
</script>

<?php echo $this->fetch('pagefooter.htm'); ?>
